			
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using DDF.Entity;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;
		
namespace ARR.Entities
{
	[DataContract]
	[Serializable]	
	public partial class HistoryDetail : EntityBase
	{
		[DataMember]
		private HistoryDetailRow row;
		
		public HistoryDetail(HistoryDetailRow row)
		{
			this.row = row;
		}
		
		public HistoryDetail()
		{
			this.row = new HistoryDetailRow();
		}
		
		[DataMember]
		public int Id
		{
			get { return row.Id; }
			set { row.Id = value; }
		}

		[DataMember]
		public int HistoryId
		{
			get { return row.HistoryId; }
			set { row.HistoryId = value; }
		}

		[DataMember]
		public int? CategoryId
		{
			get { return row.CategoryId; }
			set { row.CategoryId = value; }
		}

		[DataMember]
		public string Category
		{
			get { return row.Category; }
			set { row.Category = value; }
		}

		[DataMember]
		public string Universe
		{
			get { return row.Universe; }
			set { row.Universe = value; }
		}

		[DataMember]
		public string Role
		{
			get { return row.Role; }
			set { row.Role = value; }
		}

		[DataMember]
		public object AverageVolume
		{
			get { return row.AverageVolume; }
			set { row.AverageVolume = value; }
		}

		[DataMember]
		public decimal? AverageSales
		{
			get { return row.AverageSales; }
			set { row.AverageSales = value; }
		}

		[DataMember]
		public decimal? AverageGIM
		{
			get { return row.AverageGIM; }
			set { row.AverageGIM = value; }
		}

		[DataMember]
		public decimal? AverageGIMP
		{
			get { return row.AverageGIMP; }
			set { row.AverageGIMP = value; }
		}

		[DataMember]
		public object AverageDelistedVolume
		{
			get { return row.AverageDelistedVolume; }
			set { row.AverageDelistedVolume = value; }
		}

		[DataMember]
		public decimal? AverageDelistedSales
		{
			get { return row.AverageDelistedSales; }
			set { row.AverageDelistedSales = value; }
		}

		[DataMember]
		public decimal? AverageDelistedGIM
		{
			get { return row.AverageDelistedGIM; }
			set { row.AverageDelistedGIM = value; }
		}

		[DataMember]
		public object SS_VolumeCY
		{
			get { return row.SS_VolumeCY; }
			set { row.SS_VolumeCY = value; }
		}

		[DataMember]
		public decimal? SS_SalesCY
		{
			get { return row.SS_SalesCY; }
			set { row.SS_SalesCY = value; }
		}

		[DataMember]
		public decimal? SS_GIMCY
		{
			get { return row.SS_GIMCY; }
			set { row.SS_GIMCY = value; }
		}

		[DataMember]
		public decimal? SS_PIDiffCY
		{
			get { return row.SS_PIDiffCY; }
			set { row.SS_PIDiffCY = value; }
		}

		[DataMember]
		public decimal? SS_ChargeOffCY
		{
			get { return row.SS_ChargeOffCY; }
			set { row.SS_ChargeOffCY = value; }
		}

		[DataMember]
		public decimal? SS_RebatesCY
		{
			get { return row.SS_RebatesCY; }
			set { row.SS_RebatesCY = value; }
		}

		[DataMember]
		public decimal? SS_InventoryCY
		{
			get { return row.SS_InventoryCY; }
			set { row.SS_InventoryCY = value; }
		}

		[DataMember]
		public object SS_VolumePY
		{
			get { return row.SS_VolumePY; }
			set { row.SS_VolumePY = value; }
		}

		[DataMember]
		public decimal? SS_SalesPY
		{
			get { return row.SS_SalesPY; }
			set { row.SS_SalesPY = value; }
		}

		[DataMember]
		public decimal? SS_GIMPY
		{
			get { return row.SS_GIMPY; }
			set { row.SS_GIMPY = value; }
		}

		[DataMember]
		public decimal? SS_PIDiffPY
		{
			get { return row.SS_PIDiffPY; }
			set { row.SS_PIDiffPY = value; }
		}

		[DataMember]
		public decimal? SS_ChargeOffPY
		{
			get { return row.SS_ChargeOffPY; }
			set { row.SS_ChargeOffPY = value; }
		}

		[DataMember]
		public decimal? SS_RebatesPY
		{
			get { return row.SS_RebatesPY; }
			set { row.SS_RebatesPY = value; }
		}

		[DataMember]
		public decimal? SS_InventoryPY
		{
			get { return row.SS_InventoryPY; }
			set { row.SS_InventoryPY = value; }
		}

		[DataMember]
		public decimal? Gondola
		{
			get { return row.Gondola; }
			set { row.Gondola = value; }
		}

		[DataMember]
		public decimal? TransactionArea
		{
			get { return row.TransactionArea; }
			set { row.TransactionArea = value; }
		}

		[DataMember]
		public decimal? GrabAndGo
		{
			get { return row.GrabAndGo; }
			set { row.GrabAndGo = value; }
		}

		[DataMember]
		public decimal? WIC
		{
			get { return row.WIC; }
			set { row.WIC = value; }
		}

		[DataMember]
		public decimal? OpenCooler
		{
			get { return row.OpenCooler; }
			set { row.OpenCooler = value; }
		}

		[DataMember]
		public decimal? Freezer
		{
			get { return row.Freezer; }
			set { row.Freezer = value; }
		}

		[DataMember]
		public decimal? Forecourt
		{
			get { return row.Forecourt; }
			set { row.Forecourt = value; }
		}

		[DataMember]
		public decimal? OtherExhibition
		{
			get { return row.OtherExhibition; }
			set { row.OtherExhibition = value; }
		}

		[DataMember]
		public int? SKUsWithSales
		{
			get { return row.SKUsWithSales; }
			set { row.SKUsWithSales = value; }
		}

		[DataMember]
		public int? NewSKUs
		{
			get { return row.NewSKUs; }
			set { row.NewSKUs = value; }
		}

		[DataMember]
		public int? SKUsInSalesFiles
		{
			get { return row.SKUsInSalesFiles; }
			set { row.SKUsInSalesFiles = value; }
		}

		[DataMember]
		public int? DelistProposal
		{
			get { return row.DelistProposal; }
			set { row.DelistProposal = value; }
		}

		[DataMember]
		public int? Sales10
		{
			get { return row.Sales10; }
			set { row.Sales10 = value; }
		}

		[DataMember]
		public int? Sales20
		{
			get { return row.Sales20; }
			set { row.Sales20 = value; }
		}

		[DataMember]
		public int? Sales30
		{
			get { return row.Sales30; }
			set { row.Sales30 = value; }
		}

		[DataMember]
		public int? Sales40
		{
			get { return row.Sales40; }
			set { row.Sales40 = value; }
		}

		[DataMember]
		public int? Sales50
		{
			get { return row.Sales50; }
			set { row.Sales50 = value; }
		}

		[DataMember]
		public int? Sales60
		{
			get { return row.Sales60; }
			set { row.Sales60 = value; }
		}

		[DataMember]
		public int? Sales70
		{
			get { return row.Sales70; }
			set { row.Sales70 = value; }
		}

		[DataMember]
		public int? Sales80
		{
			get { return row.Sales80; }
			set { row.Sales80 = value; }
		}

		[DataMember]
		public int? Sales90
		{
			get { return row.Sales90; }
			set { row.Sales90 = value; }
		}

		[DataMember]
		public int? Sales100
		{
			get { return row.Sales100; }
			set { row.Sales100 = value; }
		}

		[DataMember]
		public int? Bottom5
		{
			get { return row.Bottom5; }
			set { row.Bottom5 = value; }
		}

		[DataMember]
		public int? HurdleRate
		{
			get { return row.HurdleRate; }
			set { row.HurdleRate = value; }
		}

		[DataMember]
		public int? ActiveCategories
		{
			get { return row.ActiveCategories; }
			set { row.ActiveCategories = value; }
		}

		[DataMember]
		public int? CategoriesWithInvAnalysis
		{
			get { return row.CategoriesWithInvAnalysis; }
			set { row.CategoriesWithInvAnalysis = value; }
		}

		[DataMember]
		public string Country
		{
			get { return row.Country; }
			set { row.Country = value; }
		}

		[DataMember]
		public string Range
		{
			get { return row.Range; }
			set { row.Range = value; }
		}

		
		public HistoryDetailRow GetRow()
        {
            return row;
        }
		
	} 
} 
